package com.tmsps.ne4weixin.bean.message.send;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.tmsps.ne4weixin.annotation.XStreamCDATA;
import com.tmsps.ne4weixin.bean.message.event.BaseEvent;
import com.tmsps.ne4weixin.bean.message.receive.InBaseMessage;
import com.tmsps.ne4weixin.bean.message.send.vo.Music;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Getter;
import lombok.Setter;

/**
 * @Title: MusicMessage.java
 * @Package: com.tmsps.ne4weixin.bean.send
 * @Description: 被动回复用户消息-回复音乐消息
 * @author: hanjiefei
 * @date: 2019-10-18
 * @version V1.0
 * @Copyright: 2019
 */
@XStreamAlias("xml")
@Setter
@Getter
public class OutMusicMessage extends OutBaseMessage {

	@XStreamCDATA(join = true)
	@XStreamAlias("Music")
	private Music music;

	public OutMusicMessage(String title, String description, String musicUrl, String hQMusicUrl, String thumbMediaId) {
		super(MsgTypeEnum.MUSIC);
		this.music = new Music(title, description, musicUrl, hQMusicUrl, thumbMediaId);
	}

	public OutMusicMessage(InBaseMessage message) {
		super(message, MsgTypeEnum.MUSIC);
	}

	public OutMusicMessage(BaseEvent event) {
		super(event, MsgTypeEnum.MUSIC);
	}
}
